/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package midpmpc;

import javax.microedition.lcdui.Choice;
import javax.microedition.lcdui.Command;
import javax.microedition.lcdui.List;

/**
 *
 * @author vvs
 */
public class PlaybackMenu extends List{
    int isConnected=0;
    Command back;
    Command select;
    public PlaybackMenu()
    {
        super("Main", Choice.IMPLICIT);

        append("play", null);
        append("pause", null);
        append("stop",null);
        append("next",null);
        append("prev",null);
        back=new Command("back", Command.BACK, 0);
        select=new Command("ok", Command.OK, 0);
        addCommand(back);
        addCommand(select);

    }
    public String currCmd()
    {
        return getString(getSelectedIndex());
    }
}
